﻿// JScript 文件
function TopAd()
{
    var strTopAd="";
    var topFlash="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" "+
                    "codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"950\" height=\"60\">"+
                    "<param name=\"movie\" value=\"http://images.vancl.com/NewVancl/top/free/countdown.swf\">"+
                    "<param name=\"quality\" value=\"high\">"+
                    " <param name=\"wmode\" value=\"opaque\">"+
                    "<embed src=\"http://images.vancl.com/NewVancl/top/free/countdown.swf\" quality=\"high\" "+
                    "pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" "+
                    "width=\"950\" height=\"60\" wmode=\"opaque\"></></embed></object>";
    if(location=="http://localhost:804/Untitled-3.html"||location=="http://new.vancl.com/"||location=="http://www.vancl.com/"||location=="http://www.vancl.com/")
    {
        strTopAd="<div id=adimage style=\"width:980px\">"+
                    "<div id=adBig><a href=\"/zhuanti/free_090403.htm\" "+ 
                    "target=_blank><img title=VANCL购物全场免运费 "+
                    "src=\"../products/free_980_b.gif\" "+
                    "border=0></A></div>"+
                    "<div id=adSmall style=\"display: none\">";
        strTopAd+=  topFlash;     
        strTopAd+=  "</div></div>";
    }
    else
    {
        strTopAd="<div>"+topFlash+"</div>";
    }
    strTopAd+="<div style=\"height:15px; clear:both;overflow:hidden\"></div>";
    return strTopAd;
}
document.write(TopAd());
$(function(){
    setTimeout("showImage();",2000);
});
function showImage()
{
    $("#adBig").slideUp(1000,function(){$("#adSmall").slideDown(1000);});
}
